|
Public Types |
| typedef std::vector< CDMAttribute > | AttrVec |
typedef std::map< std::string,
AttrVec > | StrAttrVecMap |
| typedef std::vector< CDMDimension > | DimVec |
| typedef std::vector< CDMVariable > | VarVec |
Public Member Functions |
| | CDM () |
| virtual | ~CDM () |
| void | addVariable (const CDMVariable &var) throw (CDMException) |
| | add variable to cdm
|
| CDMVariable & | getVariable (const std::string &varName) throw (CDMException) |
| | get a reference of a variable
|
| const CDMVariable & | getVariable (const std::string &varName) const throw (CDMException) |
| | get a reference of a variable
|
| bool | hasVariable (const std::string &varName) const |
| | test if variable exists
|
| std::vector< std::string > | findVariables (const std::string &attrName, const std::string &attrValueRegExp) const |
| | search for variable with certain attribute-value
|
| std::vector< std::string > | findVariables (const std::map< std::string, std::string > &findAttributes, const std::vector< std::string > &findDimensions) const |
| | search for variable with attribute-values and dimensions
|
| bool | checkVariableAttribute (const std::string &varName, const std::string &attribute, const boost::regex &attrValue) const |
| void | removeVariable (const std::string &variableName) |
| | remove a variable and corresponding attributes
|
| void | addDimension (const CDMDimension &dim) throw (CDMException) |
| | add a dimension to cdm
|
| bool | hasDimension (const std::string &dimName) const |
| CDMDimension & | getDimension (const std::string &dimName) throw (CDMException) |
| | get a reference to a dimension
|
| const CDMDimension & | getDimension (const std::string &dimName) const throw (CDMException) |
| const CDMDimension * | getUnlimitedDim () const |
| | retrieve the unlimited dimension
|
| bool | hasUnlimitedDim (const CDMVariable &var) const |
| | test if a variable contains the unlimited dim
|
| void | addAttribute (const std::string &varName, const CDMAttribute &attr) throw (CDMException) |
| void | addOrReplaceAttribute (const std::string &varName, const CDMAttribute &attr) throw (CDMException) |
| void | removeAttribute (const std::string &varName, const std::string &attrName) |
| void | toXMLStream (std::ostream &os) const |
| | print a xml representation to the stream
|
| const DimVec & | getDimensions () const |
| | get the dimension
|
| const VarVec & | getVariables () const |
| | get the variables
|
| const StrAttrVecMap & | getAttributes () const |
| | get the attributes
|
| std::vector< CDMAttribute > | getAttributes (const std::string &varName) const |
| | get the attributes of an variable
|
| CDMAttribute & | getAttribute (const std::string &varName, const std::string &attrName) throw (CDMException) |
| | get an attribute
|
| const CDMAttribute & | getAttribute (const std::string &varName, const std::string &attrName) const throw (CDMException) |
| | get an const attribute
|
| double | getFillValue (const std::string &varName) const |
| void | generateProjectionCoordinates (const std::string &projectionVariable, const std::string &xDim, const std::string &yDim, const std::string &lonDim, const std::string &latDim) throw (CDMException) |
| | generate the projection coordinates (usually named "lat lon")
|
| bool | getProjectionAndAxesUnits (std::string &projectionName, std::string &xAxis, std::string &yAxis, std::string &xAxisUnits, std::string &yAxisUnits) const throw (CDMException) |
| | extract the names of the projection-variable and the corresponding projection-axes
|
| AttrVec | getProjection (std::string varName) const |
| | get the projection attributes (as of CF-1.0) of a variable
|
| std::string | getHorizontalXAxis (std::string varName) const |
| | get the x-(lon) axis of the variable
|
| std::string | getHorizontalYAxis (std::string varName) const |
| | get the y-(lat) axis of the variable
|
| bool | getLatitudeLongitude (std::string varName, std::string &latitude, std::string &longitude) const |
| | detect the latitude and longitude coordinates of the variable
|
| std::string | getTimeAxis (std::string varName) const |
| | get the time axis of the variable
|
| std::string | getVerticalAxis (std::string varName) const |
| | get the vertical axis of the variable
|
Static Public Member Functions |
| static const std::string & | globalAttributeNS () |
| | the namespace for global attributes
|